let phone=localStorage.getItem("phone")
$.ajax({
    url: `http://localhost:8088/dev/user/head/${phone}`,
    type: 'post',
    success:function (result){
        if(phone!=null){
            let arr = result.data
            let str=`<img src= "${arr.uphoto}" class="img-fluid" alt="">`
            $("#photo").html(str)
            let uname=`${arr.username}`
            $("#uname").html(uname)
            let intro=`${arr.intro}`
            $("#intro").html(intro)

        }else{
            // alert("请先登录")
            window.location.href='http://localhost:8088/dev/views/ccw/error.html';


        }
    }
})

